package com.shuqi.controller;

import android.app.Activity;
import android.content.Context;

import com.shuqi.interfaces.IEventListener;
import com.shuqi.model.RecommendModel;

/**
 * 
 * 推荐界面管理器
 * 
 * @author zhuchen
 * 
 */
public class RecommendController extends ControllerBase {
    private Activity mContext;
    private RecommendModel model;

    public RecommendController(Context context) {
        this.mContext = (Activity) context;
        model = new RecommendModel(context);

    }

    @Override
    public void addEventListener(IEventListener listener) {
        model.addEventListener(listener);

    }



    @Override
    public void onDestroy() {
        model.onDestroy();

    }

    @Override
    public void handle(int eventType, Object... objs) {
        switch (eventType) {
            case EVENT_LOADPAGE:
                model.loadData(objs);
                break;

            default:
                break;
        }

    }

}
